package com.dankegongyu.lib.common.widget.dropdown;

import androidx.annotation.ColorInt;

/**
 * @author wpq
 * @version 1.0
 */
public class DropDownMenuTheme {

    @ColorInt
    private int backgroundColor;
    @ColorInt
    private int tabColorNormal;
    @ColorInt
    private int tabColorSelected;

    public DropDownMenuTheme(Builder builder) {
        this.backgroundColor = builder.backgroundColor;
        this.tabColorNormal = builder.tabColorNormal;
        this.tabColorSelected = builder.tabColorSelected;
    }

    public int getBackgroundColor() {
        return backgroundColor;
    }

    public int getTabColorNormal() {
        return tabColorNormal;
    }

    public int getTabColorSelected() {
        return tabColorSelected;
    }

    public static class Builder {
        @ColorInt
        private int backgroundColor;
        @ColorInt
        private int tabColorNormal;
        @ColorInt
        private int tabColorSelected;

        public Builder(@ColorInt int tabColorNormal, @ColorInt int tabColorSelected) {
            this.tabColorNormal = tabColorNormal;
            this.tabColorSelected = tabColorSelected;
        }

        public Builder setBackgroundColor(@ColorInt int backgroundColor) {
            this.backgroundColor = backgroundColor;
            return this;
        }

        public DropDownMenuTheme build() {
            return new DropDownMenuTheme(this);
        }
    }
}
